Integrand size = 24, antiderivative size = 25 \[ \int \cos ^2(c+d x) (a+i a \tan (c+d x))^2 \, dx=-\frac {i a^3}{d (a-i a \tan (c+d x))} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3568, 32} \[ \int \cos ^2(c+d x) (a+i a \tan (c+d x))^2 \, dx=-\frac {i a^3}{d (a-i a \tan (c+d x))} \]
[In]
[Out]
Rule 32
Rule 3568
Rubi steps \begin{align*} \text {integral}& = -\frac {\left (i a^3\right ) \text {Subst}\left (\int \frac {1}{(a-x)^2} \, dx,x,i a \tan (c+d x)\right )}{d} \\ & = -\frac {i a^3}{d (a-i a \tan (c+d x))} \\ \end{align*}
Time = 0.13 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.24 \[ \int \cos ^2(c+d x) (a+i a \tan (c+d x))^2 \, dx=-\frac {i a^2 (\cos (c+d x)+i \sin (c+d x))^2}{2 d} \]
[In]
[Out]
Time = 1.35 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.76
method | result | size |
risch | \(-\frac {i a^{2} {\mathrm e}^{2 i \left (d x +c \right )}}{2 d}\) | \(19\) |
derivativedivides | \(\frac {-a^{2} \left (-\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )-i a^{2} \left (\cos ^{2}\left (d x +c \right )\right )+a^{2} \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}\) | \(73\) |
default | \(\frac {-a^{2} \left (-\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )-i a^{2} \left (\cos ^{2}\left (d x +c \right )\right )+a^{2} \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}\) | \(73\) |
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.68 \[ \int \cos ^2(c+d x) (a+i a \tan (c+d x))^2 \, dx=-\frac {i \, a^{2} e^{\left (2 i \, d x + 2 i \, c\right )}}{2 \, d} \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.44 \[ \int \cos ^2(c+d x) (a+i a \tan (c+d x))^2 \, dx=\begin {cases} - \frac {i a^{2} e^{2 i c} e^{2 i d x}}{2 d} & \text {for}\: d \neq 0 \\a^{2} x e^{2 i c} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.36 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.28 \[ \int \cos ^2(c+d x) (a+i a \tan (c+d x))^2 \, dx=\frac {a^{2} \tan \left (d x + c\right ) - i \, a^{2}}{{\left (\tan \left (d x + c\right )^{2} + 1\right )} d} \]
[In]
[Out]
none
Time = 0.50 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.68 \[ \int \cos ^2(c+d x) (a+i a \tan (c+d x))^2 \, dx=-\frac {i \, a^{2} e^{\left (2 i \, d x + 2 i \, c\right )}}{2 \, d} \]
[In]
[Out]
Time = 3.82 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.72 \[ \int \cos ^2(c+d x) (a+i a \tan (c+d x))^2 \, dx=\frac {a^2}{d\,\left (\mathrm {tan}\left (c+d\,x\right )+1{}\mathrm {i}\right )} \]
[In]
[Out]